<me:UIGAAUF
    x:Class="WPFExcelReport.TGAAUF"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls" 
    xmlns:Localization="clr-namespace:Localization;assembly=Localization" 
    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls" 
     xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
     xmlns:me="clr-namespace:WPFExcelReport" 
     xmlns:PR="clr-namespace:WPFExcelReport;assembly=TICC_PRULES"  
     xmlns:YB="clr-namespace:WPFExcelReport;assembly=TGASTGA" 
    x:Name="TV"
    Loaded="Window_Loaded"
 >
    <me:UIGAAUF.Resources>
        <CollectionViewSource   x:Key="vwMaster" />
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:TextTrimmingConverter  x:Key="trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIGAAUF.Resources>
    <WrapPanel>
            <Grid Margin="10,0,0,0" VerticalAlignment="Top" Visibility="{Binding IsOrder,ElementName=TV,Converter={StaticResource ResourceKey=bv}}">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <Button Click="OrderCommand" Height="20" Margin="5,0,0,0" Width="20" >
                    <Button.Background>
                        <ImageBrush  ImageSource="/ImagePackage;component/Images/Add.png" />
                    </Button.Background>
                </Button>
                <TextBlock Grid.Column="1" Text="{Binding Source={Localization:Translate Word=计划推进}}"  ></TextBlock>
            </Grid>
            <Grid Margin="10,0,0,0" Grid.Column="2">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition> 
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Column="0" Text="{Binding Source={Localization:Translate Word=需求:}}" ></TextBlock>
                <TextBlock  Grid.Column="1" Text="{Binding GAKG1, Converter={StaticResource d100}}" MinWidth="60" FontSize="18"/>
                <TextBlock Grid.Column="2" Text="{Binding Source={Localization:Translate Word=留位:}}" ></TextBlock>
                <TextBlock  Grid.Column="3" Text="{Binding GAKG3, Converter={StaticResource d100}}" MinWidth="60" FontSize="18"/>
            </Grid>
            <Grid Margin="10,0,0,0" Grid.Column="2">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Column="0" Text="{Binding Source={Localization:Translate Word=预留:}}" ></TextBlock>
                <TextBlock  Grid.Column="3" Text="{Binding GAKG2,Source={StaticResource vwMaster}, Converter={StaticResource d100}}" MinWidth="60" FontSize="18"/>
            </Grid>
            <Grid Margin="10,0,0,0" Grid.Column="2">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Column="0" Text="{Binding Source={Localization:Translate Word=差异:}}" ></TextBlock>
                <TextBlock  Grid.Column="1" Foreground="Red" Text="{Binding TOLOCK,ElementName=TV, Converter={StaticResource d100}}" MinWidth="60" FontSize="18"/>
            </Grid>  
    </WrapPanel>    
</me:UIGAAUF>
